Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(@angular-devkit/build-angular): disable Webpack 5 automatic public path support #20573

Merged

Conversation

clydin
Copy link
Member

@clydin clydin commented Apr 20, 2021

The Webpack 5 automatic public path support can cause an incorrect public path to be used to load assets and lazy loaded routes. The current logic relies on the last script element found at runtime in the application's index HTML which may not be related to the application scripts. Now if a deployUrl is not specified, the Webpack publicPath option is defaulted to an empty string which provides equivalent behavior to Webpack 4.

…c path support

The Webpack 5 automatic public path support can cause an incorrect public path to be used to load assets and lazy loaded routes. The current logic relies on the last script element found at runtime in the application's index HTML which may not be related to the application scripts. Now if a `deployUrl` is not specified, the Webpack `publicPath` option is defaulted to an empty string which provides equivalent behavior to Webpack 4.
@clydin clydin added the target: rc This PR is targeted for the next release-candidate label Apr 20, 2021
@google-cla google-cla bot added the cla: yes label Apr 20, 2021
@clydin clydin requested a review from alan-agius4 April 20, 2021 13:09
@clydin clydin added the action: merge The PR is ready for merge by the caretaker label Apr 20, 2021
@filipesilva filipesilva merged commit e107055 into angular:master Apr 20, 2021
@clydin clydin deleted the webpack5/disable-auto-public-patch branch April 20, 2021 14:30
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators May 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker target: rc This PR is targeted for the next release-candidate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants